#include "..\common\svmData.h"
#include <cutil_inline.h>
#include <map>

#ifndef __SVMTRAINDATA_H__
#define __SVMTRAINDATA_H__

class svmTrainData : public svmData {
public:
	svmTrainData():svmData(),ellWidth(-1),ellData(NULL),ellRowLen(NULL) {}
	int ellWidth;
	int2* ellData;
	int* ellRowLen;

	std::map<int,unsigned int> classes;
	std::map<int,unsigned int>::iterator classIt;
	int nClass;
	int nTasks;
	float* oaLabels;
	void readSvm(char * trainingFilename);
	void cleanData();
	void genOACode();
};

#endif